package zhongbo.java.air.dictionary.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import zhongbo.java.air.dictionary.enums.APStatus;

import java.util.Date;

@Data
@ApiModel("机场信息表")
@TableName("air_airport")
public class Airport {
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("机场id")
    private String id;
    @ApiModelProperty("ICAO机场代码（如 ZBAA）")
    private String icaoCode;
    @ApiModelProperty("IATA代码（如 PEK）")
    private String iataCode;
    @ApiModelProperty("机场全称")
    private String name;
    @ApiModelProperty("纬度（WGS84坐标系，小数点后6位）")
    private double latitude;
    @ApiModelProperty("经度（WGS84坐标系，小数点后6位）")
    private double longitude;
    @ApiModelProperty("状态（枚举值：OPERATIONAL-运行中, CLOSED-已关闭, RESTRICTED-限制运行）")
    private String status;
    @ApiModelProperty("时区（如 Asia/Shanghai）")
    private String timezone;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
}
